<template>
    <div>
        <header class="header-content">
            <div class="header-icon-back" @click="to('user')"><span></span></div>
            <div class="header-title">银行卡管理</div>
        </header>
        <div class="view-content">
            <div class="cardList">
                <span class="card-number">
                                       62220212345635754
                                    </span>
                <span class="bank-name">工商银行</span>
                <img src="../assets/icon/icon-more.png">
            </div>
            <div class="add-bankCard-content">
                <div class="add-bankCard" @click="to('addBankCard')">+添加银行卡</div>
            </div>
        </div>
    </div>
</template>
<style scoped>
    @import "../css/style.css";
    .cardList {
        font-size: 0.9375rem;
        line-height: 1.42rem;
        padding: 0.6rem 0.9375rem;
        display: flex;
        align-items: center;
        background-color: #fff;
        border-bottom: 0.0625rem solid #d9d9d9;
    }
    .card-number {
        flex: 1;
        text-align: left;
    }
    .bank-name {
        color: #999;
    }
    .cardList img {
        width: 1.375rem;
        height: 1.375rem;
    }
    .add-bankCard-content {
        margin-top: 1.2rem;
        padding: 0 0.9375rem;
    }
    .add-bankCard {
        font-size: 1.125rem;
        line-height: 2.56rem;
        border-radius: 0.3125rem;
        border: 0.0625rem solid #353535;
    }
</style>
<script>
    export default {
        methods: {
            to(page) {
                this.$router.push({
                    name: page
                })
            }
        }
    }
</script>
